package net.lab1024.sa.admin.module.upstream.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.admin.module.upstream.product.domain.ProductEntity;
import net.lab1024.sa.admin.module.upstream.product.domain.form.ProductQueryForm;
import net.lab1024.sa.admin.module.upstream.product.domain.ProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Component
@Mapper
public interface ProductDao extends BaseMapper<ProductEntity> {

    List<ProductVO> queryPage(Page<?> page, @Param("queryForm") ProductQueryForm queryForm);

    ProductEntity queryByProductName(@Param("productName") String productName);
}
